package cn.baimo.pojo;

import java.io.Serializable;

/**
 * ClassName: Comment
 * Description:评论表
 * date: 2020/5/29 0029 10:52:37
 *
 * @author 19036
 * @since JDK 1.8
 * 评论表(comment)
 * 字段名	        属性	        约束	注释
 * id	            int	            主键	主键
 * uid	            int	            外键	用户id
 * did	            int	            外键	医生id
 * comment	        text(1000)	    非空	评论内容
 * datatime	        datatime	    非空	评论时间
 * hospitalGrade	decimal(3,1)	非空	医院评分
 * attitudeGrade	decimal(3,1)	非空	态度评分
 * skillGrade	    decimal(3,1)	非空	技术评分
 */
public class Comment implements Serializable {
    private int id;
    private User user;
    private Doctor doctor;
    private String comment;
    private String datatime;
    private double hospitalGrade;
    private double attitudeGrade;
    private double skillGrade;

    public Comment() {
    }

    public Comment(int id, User user, Doctor doctor, String comment, String datatime, double hospitalGrade, double attitudeGrade, double skillGrade) {
        this.id = id;
        this.user = user;
        this.doctor = doctor;
        this.comment = comment;
        this.datatime = datatime;
        this.hospitalGrade = hospitalGrade;
        this.attitudeGrade = attitudeGrade;
        this.skillGrade = skillGrade;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getDatatime() {
        return datatime;
    }

    public void setDatatime(String datatime) {
        this.datatime = datatime;
    }

    public double getHospitalGrade() {
        return hospitalGrade;
    }

    public void setHospitalGrade(double hospitalGrade) {
        this.hospitalGrade = hospitalGrade;
    }

    public double getAttitudeGrade() {
        return attitudeGrade;
    }

    public void setAttitudeGrade(double attitudeGrade) {
        this.attitudeGrade = attitudeGrade;
    }

    public double getSkillGrade() {
        return skillGrade;
    }

    public void setSkillGrade(double skillGrade) {
        this.skillGrade = skillGrade;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", user=" + user +
                ", doctor=" + doctor +
                ", comment='" + comment + '\'' +
                ", datatime='" + datatime + '\'' +
                ", hospitalGrade=" + hospitalGrade +
                ", attitudeGrade=" + attitudeGrade +
                ", skillGrade=" + skillGrade +
                '}';
    }
}
